package com.ehotting.mqbd.core.monitor;

import com.ehotting.mqbd.api.bean.solver.SolverInfoBean;
import com.ehotting.mqbd.api.bean.solver.SolverStateBean;
import com.ehotting.mqbd.core.logger.ModuleActiveLogger;

public interface ModuleActiveAble {

    /**
     * 系统模块
     * @return
     */
    public String getModule();

    /**
     *
     * @param solverState
     * @return
     * -1，表示请求失败；
     * 0，表示任务完成；
     * 大于0，表示任务数量；
     */
    public  Integer doAction(SolverStateBean solverState );


    /***
     * 该值应用于telnet端口标志
     */
    public Integer TELNET_SUCCESS_MASK = 10000;

    public Integer TELNET_FAIL_MASK = -10000;

    public String LOGGER_IP_KEY = "ip";

    public String LOGGER_PORT_KEY = "port";

    public ModuleActiveLogger getModuleActiveLogger();

}
